//
//  SQBaseViewController.h
//  pai
//
//  Created by pro on 14-10-29.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "SQSocket.h"
#import "Global.h"

@interface SQBaseViewController : UIViewController<MBProgressHUDDelegate>
{
    AsyncSocket* asyncSocket;
}

@property (weak,nonatomic) MBProgressHUD* HUD;

@property NSMutableData* socketData;
@property (nonatomic) NSInteger socketTag;

-(void)sendData:(NSData*)data tag:(NSInteger)tag withHUD:(BOOL)flag;
-(void)showHUD;
@end
